'use strict';

function average_uneven(collection) {
  let arr =  collection.filter((value) => {
    return value % 2 != 0 ;
  }) ;
  let L = arr.length ;
  return arr.reduce((average,value) =>{
    return average +value/L ;
  },0) ;
}

module.exports = average_uneven;
// var collection = [1,2,3,4,5,6,7,8,9,10];
// console.log(average_uneven(collection));